package com.tongji.diy.event
{
	import com.tongji.diy.view.component3D.Door;
	
	import flash.events.Event;
	
	public class ReturnDoorsInfoEvent extends Event
	{
		public static const RETURNDOOSINFO:String = "returndoorsinfo";
		public var s_doors:Vector.<Door> = new Vector.<Door>();//传送信息到model，其中的width变量用于存放所属房间index。zdp
		public var s_rooms:Vector.<int> = new Vector.<int>();
		public function ReturnDoorsInfoEvent(type:String,s_d:Vector.<Door>,s_r:Vector.<int>, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			
			super(type, bubbles, cancelable);
			s_doors.length = 0;
			s_rooms.length = 0;
			for(var i:int = 0; i < s_d.length; i++)
			{
				s_doors.push(s_d[i]);
				s_rooms.push(s_r[i]);
			}
			//trace(s_doors.length,"backevent");
		}
		
		override public function clone():Event
		{
			return new ReturnDoorsInfoEvent(type,s_doors,s_rooms);
		}
	}
}